package net.dopan.pigframe.user.mapper;

import net.dopan.pigframe.core.base.dao.BaseDao;
import net.dopan.pigframe.user.model.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

/**
 * @Package: net.dopan.pigframe.user.mapper
 * @Title: SysUserRoleMapper
 * @Description: 用户角色表 Mapper 接口
 * @author: 刘宽
 * @date: 2018/9/2 20:45
 */
public interface SysUserRoleMapper extends BaseDao<SysUserRole> {
    /**
     * 根据用户Id删除该用户的角色关系
     *
     * @param userId 用户ID
     * @return boolean
     */
    Boolean deleteByUserId(@Param("userId") Integer userId);
}